//1.创建pinia
import { createPinia } from 'pinia'
const pinia = createPinia()
//2.使用持久化插件
import persist from 'pinia-plugin-persistedstate'
pinia.use(persist)
//3.导出创建的pinia
export default pinia
//4.在main.ts中引入pinia

//5.统一管理module导入导出
// import { useUserStore } from './modules/user'
// export { useUserStore }
//简写
export * from './modules/user'
